﻿using System;
namespace AutoUpdater
{
    public class User
    {
        //class variables
        protected string AccountStatus;
        protected string AccountType;
        protected string Email;
        protected string FirstName;
        protected string LastName;
        protected DateTime RegistrationDate;
        protected string UserAddress;
        protected string UserID;
        protected string zipcode;
        protected string password;
        protected float accBalance;

        //initializer
        DBTransactions DB = new DBTransactions();


        public User()
        {

            this.AccountStatus = string.Empty;
            this.AccountType = string.Empty;
            this.Email = string.Empty;
            this.FirstName = string.Empty;
            this.LastName = string.Empty;
            //this.RegistrationDate = string.Empty;
            this.UserAddress = string.Empty;
            this.zipcode = string.Empty;
            this.password = string.Empty;


        }//end default constructor

        public User(string userID)
        {
            DB.OpenDB();
            this.UserID = userID;
            
            DB.CloseDB();


        }//end default constructor

        //return 0 on success


        public string getUserID()
        {
            return this.UserID;
        }
    }//end User Class
}